package com.cyan.learn.pattern.composite;

import java.util.Random;

/**
 * 叶子节点
 */
public class City implements Count {
    @Override
    public int count() {
        int a = new Random().nextInt(10);
        System.out.println("叶子：" + a);
        return a;
    }
}
